package cn.springBoot.entity;

 
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ljx
 * @since 2020-01-16
 */

 public class School extends Model<School> implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;
    private Integer age;
    private Integer range;
    private String name;


    public Integer getId() {
        return id;
    }

    public School setId(Integer id) {
        this.id = id;
        return this;
    }

    public Integer getAge() {
        return age;
    }

    public School setAge(Integer age) {
        this.age = age;
        return this;
    }

    public Integer getRange() {
        return range;
    }

    public School setRange(Integer range) {
        this.range = range;
        return this;
    }

    public String getName() {
        return name;
    }

    public School setName(String name) {
        this.name = name;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "School{" +
        ", id=" + id +
        ", age=" + age +
        ", range=" + range +
        ", name=" + name +
        "}";
    }
}
